package com.ricky04.event;

import org.springframework.context.ApplicationListener;

/**
 * 注册事件监听
 */
public class MyApplicationListener implements ApplicationListener<MyApplicationEvent> {
    @Override
    public void onApplicationEvent(MyApplicationEvent myApplicationEvent) {
        System.out.println("哎哟  我监听到了呢");
    }
}
